﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Sisocana.Core.Models.VideoModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Create Video Contents
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Create Video Contents</h2>
<script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery-1.5.1.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery-ui-1.8.11.js") %>" type="text/javascript"></script>
<link href="<%: Url.Content("~/Content/themes/base/jquery.ui.all.css") %>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
    $(document).ready(function () {

        $("button, input:submit , input:file ").button();
    });
</script>
<% using (Html.BeginForm("Create", "Video",
                    FormMethod.Post, new { enctype = "multipart/form-data" }))
   { %>
    <%: Html.ValidationSummary(true) %>
    

        <div class="editor-label">
            <%: Html.LabelFor(model => model.nombre) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.nombre) %>
            <%: Html.ValidationMessageFor(model => model.nombre) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.descripcion) %>
        </div>
        <div class="editor-field">
            <%: Html.TextAreaFor(model => model.descripcion,2,23,null) %>
            <%: Html.ValidationMessageFor(model => model.descripcion) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.pagWeb) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.pagWeb) %>
            <%: Html.ValidationMessageFor(model => model.pagWeb) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.logo,"Logo") %>
        </div>
        <div class="editor-field">
           <input name="logo" type="file" />
        </div>
        <p>
            <input type="submit" value="Create" />
        </p>
    
<% } %>

<div>
    <%: Html.ActionLink("Back to List", "Index") %>
</div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>
